layui.use('form', function() {
	var form = layui.form;
	pageListStudent();

	function pageListStudent() {
		$.ajax({
			url: 'http://localhost:8080/Online-student/StudentsController/getstudent',
			type: "get",
			data: {
				page: 1,
				limit: 10,
				tid:1,
				sid:1
			},
			dataType: "json",
			success: function(result) {
				console.log(result);
				form.val('formone', {
					"sno": result.data.list[0].sno,
					"cname":result.data.list[0].cname,
					"deptname":result.data.list[0].deptname,
					"sname":result.data.list[0].sname,
					"cradid":result.data.list[0].cradid,
					"locka":result.data.list[0].locka,
					"sex":result.data.list[0].sex,
					"age":result.data.list[0].age,
					"email":result.data.list[0].email,
					"phone":result.data.list[0].phone,
					"birthday":result.data.list[0].birthday,
					"natives":result.data.list[0].natives,
					"seniorhigh":result.data.list[0].seniorhigh,
					"createtime":result.data.list[0].createtime,
					"overtime":result.data.list[0].overtime,
				});
			}
		})
	}
})


